package com.jiashihui.schema_lgorithm.schema.observer;

/**
 * @author jiashihui
 * @describe: 求职者
 * @date 2019/03/14
 */
public class JobSeekerImpl implements Observer {

    /* 求职者名称 */
    private String name;

    public JobSeekerImpl(String name) {
        this.name = name;
    }

    @Override
    public void update(Subject subject) {
        System.out.println(this.name + " got notified!");
		/* 打印工作列表 */
        System.out.println(subject.toString());
    }
}
